
//$(document).ready(function(){
 	//appTablero();
 //});
/*function appTablero(){
      //$(document).click(function(){
      var demoCanvas = document.getElementById('Tablero');
	  var trazo = demoCanvas.getContext('2d');
      var object = new DrawForm(100,100);
	  object.draw(trazo);	
	  //};
}*/
var id='';
var tam=false;
$(function() {
    $( "#forms1" ).draggable();
});
//$(function() {
  //  $( "#forms1" ).resizable();
//});
$(function() {
    $( "#forms2" ).draggable();
});
$(function() {
    $( "#forms3" ).draggable();
});
$(function() {
    $( "#forms4" ).draggable();
});
$(function() {
    $( "#forms5" ).draggable();
});
$(function() {
    $( "#forms6" ).draggable();
});
$(function() {
    $( "#forms7" ).draggable();
});
$("#forms1").click(function(){
  alert("tomo el evento");
});
function seleccion(eve){
	var x=eve.target.id;
  id="#"+x+"";
  //alert(id);
}

function girar_elemento(bool){
  if(bool==true)
  {
      $(function() {
        //$(id).resizable();
        $('#forms1').rotatable();
      });
  }
  if(bool==false){
    $(function() {
        $(id).resizable("destroy");
      });
  }
  //var rot=90;
  //var elemen=document.getElementById('forms1');
  //elemen.style.transform : rotate(90deg);
  //elemen.style.-moz-transform : rotate(90deg); /* Firefox */
  
  //elemen.style.-webkit-transform : rotate(90deg); /* Chrome - Safari */
  //elemen.style.-o-transform : rotate(90deg); /* Opera */ 
}
$(document).ready(function(){
  
 });